package demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class HelloWold {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos= new FileOutputStream("./GitProject/HelloWorld.txt");
        fos.write("Hello World".getBytes(StandardCharsets.UTF_8));
        fos.write("Hello World2".getBytes(StandardCharsets.UTF_8));
        fos.write("branch1!!".getBytes(StandardCharsets.UTF_8));
        System.out.println("写出完毕");
        System.out.println("master上添加的内容");
        System.out.println("newbranch中添加的显示");
        System.out.println("啦啦啦");
        System.out.println("修改");
        fos.close();
    }
}
